<div class="tableToolbar">
    <div class="coll-md-8" id="addInput">
        <div class="coll-md-2">
            <input type="text" class='search' placeholder="项目名称" ng-model="ctrlScope.itemsearch.itemName">
        </div>
        <div class="coll-md-2 scalenone" id="search2">
            <div class="coll-md-10 triangle">
                <select class='form-control' ng-model="ctrlScope.itemsearch.itemType">
                    <option selected value="" hidden disabled>类型</option>
                    <option value="1">学车宝</option>
                    <option value="2">车商宝</option>
                    <option value="3">车贷宝</option>
                </select>
            </div>
        </div>
        <div class="coll-md-4 scalenone"  id="searchdate" datahide>
            <div class="coll-md-5" >
                <p class="input-group">
                    <input type="text" class="search" placeholder="开始时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.beginDateX" is-open="popup1.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
            <div class="coll-md-5">
                <p class="input-group inline">
                    <input type="text" class="search" placeholder="结束时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.endDateX" is-open="popup2.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
        </div>
        <div class="coll-md-2">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">

            <div class="dropdown-menu-right">
                <input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false">
                <input type="button" class="small-icon more" value="更多">
                <ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
                    <li><a href="javascript:;">日期搜索</a></li>
                    <li><a href="javascript:;">类型搜索</a></li>
                </ul>
            </div>

        </div>
    </div>

    <div class="coll-md-2">

    </div>
</div>
<table ui-table="orderParams">
    <thead>
    <tr>
        <th>ID</th>
        <th>项目名称</th>
        <th>类型</th>
        <th>金额</th>
        <th>期限</th>
        <th>利率</th>
        <th>服务费</th>
        <th>进度</th>
        <th>状态</th>
        <th>还款方式</th>
        <th>更新时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">
        <td>{{item.id}}</td>
        <td>{{item.itemName}}</td>
        <td><button type="button" class="btn green btn-xs" ng-if="item.itemIsnew!=1">{{item.itemType | itemType}}</button><button type="button" class="btn green btn-xs" ng-if="item.itemIsnew==1">新手标</button><button type="button" class="btn red btn-xs" ng-if="item.itemIsrecommend==1">推荐</button></td>
        <td>{{item.itemAccount | currency:'￥'}}</td>
        <td>{{item.itemCycle}}{{item.itemCycleUnit | cycleUnit}}</td>
        <td>{{item.itemRate }}+ {{item.itemAddRate}}%</td>
        <td>{{item.itemServeRate}}%</td>
        <td>{{item.itemScale}}%</td>
        <td>{{item.itemStatus | itemStatusFilter}}</td>
        <td>{{item.itemRepayMethod | repayMethod}}</td>
        <td>{{item.updateTime | date:'y-MM-dd HH:mm:ss'}}</td>
        <td title="操作">
            <a  ng-click="openViewModal(item.id)">截标</a>
        </td>
    </tr>
    </tbody>
</table>

<modal title="截标" visible="viewItemModal" style="margin:250px auto;">
    <form class="form-horizontal" role="form" id="form">
        <div class="form-body">
            <div class="row">
                <div class="col-md-12">
                    <label for="">
                        确定截标此项目吗?
                    </label>

                </div>
            </div>
            <div class="buttonArea col-md-12">
                <button type="button"  class="btn blue" ng-click="submit()">确定</button>
                <button type="button"  class="btn default" ng-click="cancel()" style="margin-left:10px;">取消</button>
            </div>

        </div>
    </form>
</modal>